package com.company.dao;

import java.util.List;

import com.company.entity.News;

public class NewsDao extends BaseDao<News> {

	public News query(int id) {
		String sql = "from News where id=?";
		return queryEntiy(sql, id);
	}

	public List<News> querys() {

		String sql = "from News";
		return (List<News>) queryEntiys(sql);
	}

	public void save(News news) {
		super.save(news);
	}

	public void update(News news) {
		super.update(news);
	}
	public void delete(News news) {
		super.delete(news);
	}
}
